import request from '@/utils/request'

// 主表list
export function getSettlementList(params) {
    return request({
        url: '/warehousing/statement/list',
        method: 'get',
        params,
    })
}
// 查询详情
export function getSettlementById(params) {
    return request({
        url: '/warehousing/statement/getById',
        method: 'get',
        params,
    })
}
// 新增
export function addSettlement(data) {
    return request({
        url: '/warehousing/statement/add',
        method: 'post',
        data,
    })
}
// 修改
export function aditSettlement(data) {
    return request({
        url: '/warehousing/statement/edit',
        method: 'post',
        data,
    })
}
// 删除
export function delSettlement(data) {
    return request({
        url: '/warehousing/statement/del',
        method: 'post',
        data,
    })
}
// 查询发货单列表
export function getDeliveryList(data) {
    return request({
        url: '/delivery/list',
        method: 'post',
        data,
    })
}
// 选择生产单
export function getProduceOrder(params) {
    return request({
        url: '/warehousing/statement/getProduceOrder',
        method: 'get',
        params,
    })
}
